package com.lavida.project.system.contractmana.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lavida.project.system.contractmana.domain.Contractmana;
import com.lavida.project.system.contractmana.mapper.ContractmanaMapper;
@Service
public class ContractmanaServiceImpl implements ContractmanaService{
	@Autowired
	private ContractmanaMapper conm;
	@Override
	public List<Contractmana> selectContractmana(Contractmana contractmana) {
		// TODO Auto-generated method stub
		return conm.selectContractmana(contractmana);
	}
	@Override
	public void insertContract(Contractmana contractmana) {
		// TODO Auto-generated method stub
		conm.insertContract(contractmana);
	}
	@Override
	public void deleteContract(int[] ids) {
		// TODO Auto-generated method stub
		for (int i = 0; i < ids.length; i++) {
			conm.deleteContract(ids[i]);
		}
	}
	@Override
	public Contractmana getContractmana(int id) {
		// TODO Auto-generated method stub
		Contractmana contractmana = conm.getContractmana(id);
		return contractmana;
	}
	@Override
	public void updateContract(Contractmana contractmana) {
		// TODO Auto-generated method stub
		conm.updateContract(contractmana);
	}
	
}
